# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=openttd-openmsx
pkgver=0.3.1
pkgrel=0
pkgdesc="Music Base Set for OpenTTD"
url="https://www.openttd.org/"
arch="noarch"
license="GPL-2.0-or-later"
options="!check" # No test suite
source="https://cdn.openttd.org/openmsx-releases/$pkgver/openmsx-$pkgver-all.zip"
builddir="$srcdir/openmsx-$pkgver"
install_if="openttd"

package() {
	local file
	for file in *.mid openmsx.obm; do
		install -D -m644 -g games "$file" \
			"$pkgdir"/usr/share/games/openttd/gm/"$file"
	done
}

sha512sums="d17856fc70796eadb798b133af8a987ff9887c7f0d736e48bd27e9451eb122935271779b65e098e061c1316def455f56da6caa1d448e2bf111ecf8c189d3fbc8  openmsx-0.3.1-all.zip"
